//
//  SortSegmentView.h
//  YouHui
//
//  Created by  on 11-12-1.
//  Copyright (c) 2011年 netease. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZBSortSegmentView;

@protocol ZBSortSegmentViewDelegate <NSObject>
@optional
-(void)statusChangedOfSortSegmentView:(ZBSortSegmentView*)view;
@end

@interface ZBSortSegmentView : UIView {
    NSUInteger _highlightIndex;
    NSMutableArray *_upStatusArray;
    NSMutableArray *_buttonArray;
    NSMutableArray *_arrowArray;
    id<ZBSortSegmentViewDelegate> _delegate;
    CGSize arrowSize;
}

@property(nonatomic) NSUInteger highlightIndex;
@property(nonatomic,readonly) BOOL upStatus;
@property(nonatomic,assign) id<ZBSortSegmentViewDelegate> delegate;

-(id)initWithFrame:(CGRect)frame titleArray:(NSArray*)titles;
-(void)setLeftSegmentImage:(UIImage*)leftImage middleSegmentImage:(UIImage*)middleImage rightSegmentImage:(UIImage*)rightImage;
-(void)setArrowImage:(UIImage*)arrowImage hightLightImage:(UIImage*)highImage;
-(BOOL)isSegmentUpAt:(NSUInteger)index;

@end
